package com.bobo.nutzbook.bean;

import lombok.Data;

import org.nutz.dao.entity.annotation.Column;
import org.nutz.dao.entity.annotation.Id;
import org.nutz.dao.entity.annotation.Table;
import org.nutz.json.JsonField;

@Data
@Table("t_user_profile")
public class UserProfile extends BasePojo {

	/**关联的用户id*/
	@Id(auto=false)
	@Column("user_id")
	private int userId;
	
	/**用户昵称*/
	@Column("nick_name")
	private String nickName;
	
	/**用户邮箱*/
	@Column
	private String email;
	
	/**邮箱是否已经验证过*/
	@Column("email_checked")
	private boolean emailChecked;
	
	/**头像的byte数组*/
	@Column
	@JsonField(ignore=true)
	private byte[] avatar;
	
	/**性别*/
	@Column
	private String gender;
	
	/**自我介绍*/
	@Column
	private String description;
	
	/**位置*/
	@Column
	private String location;
}
